package com.its.cloud.service;

import com.its.cloud.entity.Payment;
import com.its.cloud.mapper.PaymentMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author huguangjun
 * @className PaymentService
 * @date 2021/1/11
 * @desc 17:12
 */
@Service
public class PaymentService {
    @Resource
    private PaymentMapper paymentMapper;

    public int create(Payment payment) {
        return paymentMapper.create(payment);
    }

    public Payment getPaymentById(@Param("id") Long id) {
        return paymentMapper.getPaymentById(id);
    }
}
